package com.yg.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import com.yg.entity.singleEntity.TeacherAppoint;

import com.yg.entity.readAndWriteTemplates.TeacherAppointTemplate;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 对应sheet03，此表为教师挂职表
<<<<<<< HEAD
注意！此表的id和教师表的id是一个id Mapper 接口
=======
 * 注意！此表的id和教师表的id是一个id Mapper 接口
>>>>>>> 69fc99cc7e3014ce3b7067423c731b85d7cdf9bc
 * </p>
 *
 * @author YingGu
 * @since 2020-11-04
 */
public interface TeacherAppointMapper extends BaseMapper<TeacherAppoint> {


    List<TeacherAppointTemplate> writeExcel(@Param("appointTemplate") TeacherAppointTemplate appointTemplate);

    List<TeacherAppointTemplate> getTeacherAppoint(@Param("current") long current, @Param("limit") long limit, @Param("appointTemplate") TeacherAppointTemplate appointTemplate);

    Long getTeacherAppointPages(@Param("appointTemplate") TeacherAppointTemplate appointTemplate);

    List<TeacherAppointTemplate> getTeacherAppointById(@Param("current") long current, @Param("limit") long limit, @Param("appointTemplate") TeacherAppointTemplate appointTemplate, @Param("teacherId") String teacherId);

    Long getTeacherAppointByIdPages(@Param("appointTemplate") TeacherAppointTemplate appointTemplate, @Param("teacherId") String teacherId);

}
